<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<style type="text/css">
.loginMain{
 	margin: 0 auto;
    min-width: 900px;
    width: 1024px;
}
.loginFormContent{
	height:400px;
/* 	background-image: url("http://mimg.127.net/index/163/themes/120309_tree_cnt.jpg"); background-repeat: repeat-x; background-position: center top; */
	background-image: url("images/shuimo.jpg"); background-repeat: repeat-x; background-position: center top;
}
.loginFormLeft{
	float:left;
}
.loginFormCenter{
	float:left;
	height:400px;
	padding:0 30px;
}
.loginFormRight{
	float:left;
	height:250px;
	padding-top:100px;
	padding-left:100px;
	padding-right:100px;
}
.loginFormDiv{
	height:150px;
	width:250px;
	background-color:#FFF;
	border:1px solid #ddd;
	padding:25px;
}
.loginFormDivHeader{
	height:22px;
	background-color:#EEE;
	padding:3px 5px;
}
.loginFooter{
	text-align:center;
}
</style>
</head>
<body onLoad="document.loginForm.j_username.focus();">

	<div class="loginMain">
		<div class="header">
   			<div style="width:auto;">
   				<img src='images/lgblue/header.jpg' width="1024px" height="65" border="0"/>
   			</div>
   		</div>
   		<div class="header">
   			<div style="background-color:#EEE; width:auto;height:20px;"></div>
   		</div>
	   
	    <div class="loginFormContent">
	    	<div class="loginFormLeft">
			</div>
			<div class="loginFormCenter">
			</div>
			<div class="loginFormRight">
				<div class="loginFormDivHeader">
						登录窗口
					</div>
				<div class="loginFormDiv">
		            <c:if test="${not empty param.login_error}">
						<font color="red"> 登录失败，请重试.<br />
						 原因:<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
						</font>
					</c:if>
					<form name="loginForm" action="<c:url value='j_spring_security_check'/>"
						method="POST">
						<table>
							<tr>
								<td>用户名:</td>
								<td><input type='text' name='j_username'
									value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' />
								</td>
							</tr>
							<tr>
								<td>密 码:</td>
								<td><input type='password' name='j_password'></td>
							</tr>
							<tr>
								<td><input type="checkbox" name="_spring_security_remember_me"></td>
								<td>两周内自动登录</td>
							</tr>
							<tr>
								<td colspan='2' align="center">
									<input name="submit" type="submit" /> 
									<input name="reset" type="reset">
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>
	    </div>
	   
	    <div class="loginFooter" style="background-color:#EEE;">
	        <div class="copy">
				&copy;2010-2011 Jack Tien - All Rights Reserved.
			</div>
	    </div>
	</div>
</body>
</html>
